package com.peanut.youfupay.entity.request;

import com.peanut.youfupay.util.StringUtils;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;


/**
 * 公共接口请求信息实体类
 *
 * @author peanut
 */
@Getter
@Setter
public class RequestMessage implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 请求标识(每一次请求唯一,原样返回)
     **/
    private String reqId;

    //商户号
    private String merId;

    //接口编码
    private String funCode;

    //版本信息
    private String version;

    //请求数据
    private String reqData;

    //签约身份证正面
    @Deprecated
    private String remark1;
    //签约身份证反面
    @Deprecated
    private String remark2;

    //ip地址
    private String ip;
    //签名
    private String sign;

    @Override
    public String toString() {
        return "RequestMessage{" +
                "reqId='" + reqId + '\'' +
                ", merId='" + merId + '\'' +
                ", funCode='" + funCode + '\'' +
                ", version='" + version + '\'' +
                ", reqData='" + StringUtils.cutLongString(reqData,200) + '\'' +
                ", remark1='" + StringUtils.cutLongString(remark1,200) + '\'' +
                ", remark2='" + StringUtils.cutLongString(remark2,200) + '\'' +
                ", ip='" + ip + '\'' +
                ", sign='" + sign + '\'' +
                '}';
    }
}
